package com.example.hand.service.impl;

import com.example.hand.bean.Admin;
import com.example.hand.dao.AdminDao;
import com.example.hand.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("adminService")
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;
    @Override
    public Admin login(String name, String password){
        return adminDao.getLogin(name,password);
    }
}
